package com.music.controller;

import com.music.common.BaseResult;
import com.music.service.CmFormService;
import io.swagger.annotations.Api;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

@RestController
@RequestMapping("CmFormController")
@Api(description = "歌单相关接口")
public class CmFormController {

    @Autowired
    private CmFormService cmFormService;

    @RequestMapping(value = "findByUid",method = RequestMethod.POST)
    public BaseResult findByUid(Integer uId){
        System.out.println(uId);
        return cmFormService.findByUid(uId);
    }
    @RequestMapping(value = "deleteByfId",method = RequestMethod.POST)
    public BaseResult deleteByfId(Integer fId){
        System.out.println(fId);
        return cmFormService.deleteByfId(fId);
    }
}
